package work2;

public class Student {
    private int age1;

    public int getAge1() {
        return age1;
    }

    public void setAge1(int age1) {
        if(age1<0 || age1>100) {
        throw new RuntimeException();
        }
        this.age1 = age1;
    }
}
